package com.liu.dw.common;

/**
 * @version 1.0
 * @author： LiuWeiGang
 */

import java.util.List;

/**
 * 分页返回结果
 */
public class PageResult {
    /**
     * 当前页码
     */
    private int current;
    /**
     * 每页数量
     */
    private int pageSize;
    /**
     * 记录总数
     */
    private long total;
    /**
     * 页码总数
     */
//    private int totalPages;
    /**
     * 数据模型
     */
    private List<?> list;

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

//    public int getTotalPages() {
//        return totalPages;
//    }
//
//    public void setTotalPages(int totalPages) {
//        this.totalPages = totalPages;
//    }

    public List<?> getlist() {
        return list;
    }

    public void setList(List<?> list) {
        this.list = list;
    }
}